<?php /* Smarty version 2.6.18, created on 2016-12-09 10:42:26
         compiled from resource/resource.left.tpl.php */ ?>
 <div class="sidebar" style="background-color:#fff; padding-bottom:0px; border:1px solid #ddd; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);">
 <ul class="sidebar-menu" id="chan">
		<li class="treeview"><a href="index.php?a=resource.classifyList"><i class="fa fa-list"></i>分类设置</a></li>
		<?php $_from = $this->_tpl_vars['grade']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
		<li class="treeview <?php if ($this->_tpl_vars['grade_id'] == $this->_tpl_vars['key']): ?>active<?php endif; ?>">
		  <a href="#">
			<i class="glyphicon glyphicon-align-left"></i> <span><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</span> <i class="fa fa-angle-left pull-right"></i>
		  </a>
		  <?php $_from = $this->_tpl_vars['value']['subject']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ka'] => $this->_tpl_vars['va']):
?>
			  <ul class="treeview-menu" style="background-color:#fff;">
				<li  <?php if ($this->_tpl_vars['subject_id'] == $this->_tpl_vars['ka']): ?>class="active"<?php endif; ?>><a href="index.php?a=resource.list&grade_id=<?php echo $this->_tpl_vars['key']; ?>
&subject_id=<?php echo $this->_tpl_vars['ka']; ?>
"><i class="fa fa-angle-right"></i><?php echo $this->_tpl_vars['va']; ?>
</a></li>
			  </ul>
		  <?php endforeach; endif; unset($_from); ?>
		</li>
		<?php endforeach; endif; unset($_from); ?>
  </ul>
</div>